//margin
@mixin mt($num) {
  margin-top: $num;
}

@mixin mb($num) {
  margin-bottom: $num;
}

@mixin ml($num) {
  margin-left: $num;
}

@mixin mr($num) {
  margin-right: $num;
}

//padding
@mixin pt($num) {
  padding-top: $num;
}

@mixin pb($num) {
  padding-bottom: $num;
}

@mixin pl($num) {
  padding-left: $num;
}

@mixin pr($num) {
  padding-right: $num;
}

//多行超出省略号
@mixin ellipsis($line: 2, $line-height: 1.2) {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: $line;
  line-height: $line-height;
}

//flex左右剧中
@mixin flr() {
  display: flex;
  justify-content: center;
}

//flex上下左右剧中
@mixin fct() {
  display: flex;
  justify-content: center;
  align-items: center;
}
